package com.it.service.impl;

import com.it.mapper.DriverMapper;
import com.it.pojo.Driver;
import com.it.pojo.DriverExample;
import com.it.service.DriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DriverServiceImpl implements DriverService {
    @Autowired
    private DriverMapper driverMapper;

    @Override
    public List<Driver> findall() {
        DriverExample driverExample=new DriverExample();
        List<Driver> drivers = driverMapper.selectByExample(driverExample);
        return drivers;
    }
}
